const button = document.querySelector('.like-btn');
const buttonText = document.querySelector('.like-text');
let isLiked = false;

button.addEventListener('click', () => {
    isLiked = !isLiked;
    if (isLiked) {
        buttonText.innerHTML = '取消';
    } else {

        buttonText.innerHTML = '点赞';
    }
})
console.log('button', button)
console.log('buttonText', buttonText)